@import "base.scss";
/*公共文件*/
@charset "UTF-8";
*{
  margin: 0;
  padding: 0;
}

body{
  font-family: "Microsoft YaHei", "tahoma", "arial", "Hiragino Sans GB", "\5b8b\4f53", "sans-serif";
  font-size:$fs__body--default;//12px
  color:$color--default;//#272727
}


input{
  border:0;
  outline:none;
  padding-left:5px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  *zoom: 1;
}
button{
    background:none;
    border:0;
    outline:none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    *zoom: 1;

}

a{text-decoraton:none;}

ol,ul{
  list-style:none;
}

i{
  font-style: normal;
}

/*图片无边框行内显示*/
img{
  display:inline;
  outline:none;
  border:0;
}

/*链接color*/
.og-linkcolor{
  //color:$color-linkstyle;
  cursor:pointer;
}

.og-w-per100{
  width:100%;
}
.og-w-1180-center{
  width:1180px!important;
  margin:0 auto;
}
.og-w-1180{
  width:1180px;
}

/*<HR>*/
.og-hr{
  height:1px;border:none;border-top:1px solid $border-color-gray-eee;
}

/*非可用状态*/
.og-disablestate{
  opacity:$opacity-webkit--default;
  filter:alpha(opacity=$opacity-ie--default);
}

/*选中状态btn颜色*/
.og-btn-active{
  //background: $background-btn-active;
}



/* ******************  边框 ********************* */
.og-border{
  border:1px solid $border-color-gray-eee;
}
.og-border-t{
  border-top:1px solid $border-color-gray-eee;
}
.og-border-r{
  border-top:1px solid $border-color-gray-eee;
}
.og-border-b{
  border-bottom:1px solid $border-color-gray-eee;
}
.og-border-l{
  border-top:1px solid $border-color-gray-eee;
}

/*浮动*/
.og-fl{
  float:left;
}
.og-fr{
  float:right;
}

/*清除浮动*/
.og-clearfixed{
  *zoom:1;
}
.og-clearfixed:before,.og-clearfixed:after{
  display:table;
  content:"";
}
.og-clearfixed:after{
  clear:both;overflow:hidden;
}

/* 显示隐藏 */
.og-displayblock{
  display:block;
}
.og-displaynone{
  display:none;
}
.og-visibility-visible{
  visibility: visible;
}
.og-visibility-hidden{
  visibility: hidden;
}

/*超出隐藏*/
.og-overflow-hidden{overflow: hidden;}

/****** webkit-line-clamp *******/
.og-nowrap{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.og-nowrap-2{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;}
.og-nowrap-3{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;}
.og-nowrap-4{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 4;overflow: hidden;}

.og-borderbox{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}



/////////////////////////////////////////////////////////////  公用组件  //////////////////////////////////////////////////////////////

////////////////////////////////商城首页部 str/////////////////////////////
.comheader{
  height:200px;
}
.comheader-out{background: #272727;height:30px;line-height:30px;}
.comheader-top{
  .left{
    float:left;
    a{font-size:$fs__body--default;color:#CACACA;}
    span{margin:0 16px;color:#CACACA;}
  }
  .right{
    float:right;
    a{font-size:$fs__body--default;color:#CACACA;}
    span{margin:0 16px;color:#CACACA;}
  }
}
.comheader-top a:hover{
  color:$color__hover--default;
}

.comheader-middle {
  height: 95px;
  margin-top: 35px;
  .logo {
    float: left;
    margin-right: 90px;
  };

  .search-out {
    width:600px;
    float: left;
    .search {
      width: 600px;
      height: 40px;line-height:40px;
      position: relative;
      .tiptext{
          position:absolute;
          left:0;top:0;width: 500px;
          .tip-decorate{
            position: absolute;
            top: 10px;
            left: 16px;
          };
          .tip-span{
            font-size:16px;color:#CACACA;margin-left:40px;
          };
      };
      .searchinput {
        float: left;
        width: 500px;
        height: 40px;
        margin: 0;
        font-size: 16px;
      };
      .searchbutton {
        width: 100px;
        height: 40px;
        float: right;
        background: #FF404E;
        color: #fff;
        font-size: 16px;
        &:hover{cursor:pointer;};
      };
    };
    .artical-pickup{
      margin-top:10px;padding-left:10px;
      color:$color-tip-second;
      a{
        color:$color-tip-second;
        font-size:14px;
        &:hover{
          color:$color__hover--default;
        };
      };
      span{
        margin:0 8px;
        font-size:12px;
      };
    };
  };
  .cart {
    width:200px;
    height:28px;line-height:28px;position:relative;
    float: right;
    &:hover .comshoppingcart{
      background: url(/img/common-icons.png) no-repeat -146px -159px;
    };
    .shoppingcart{
        position:relative;
        float:left;
        .count{
          position: absolute;
          top: -8px;
          right: -2px;
          text-align: center;
          line-height: 18px;
          width: 18px;
          height: 18px;
          border-radius: 9px;
          background: rgb(255,64,78);
          color: #fff;
        };
    };
    .cartbtn{
      font-size: 16px;
      background: none;
      border: 0;
      outline: none;
      height: 28px;
      line-height: 28px;
      margin-left: 8px;
      &:hover{
        cursor:pointer;
      };
    };
    .cart-dropdown{
      display:none;
      position: absolute;
      top: 50px;
      right: 0;
      width: 324px;
      height: 410px;
      box-shadow: 1px 1px 1px 1px #dfdfdf;
      z-index: 3;
      background: #fff;
      .couttitle{
        padding-left:20px;
          height:52px;line-height:52px;color:#272727;font-size:16px;
        };
      .cartdrop-content{
        height:320px;
        overflow-y:auto;
        overflow-x:hidden;
        .cdrop-item{
          padding-left:20px;
          padding-top:8px;
          padding-bottom:8px;
          border-bottom:1px dashed $border-color-default;
          &:hover .itemdel-btn{
            color:$color__hover--default!important;
          };
          &:hover{
            background:$background__main--page;
          }
          .item-left-img{
            width: 60px;
            max-height: 60px;
            height: 60px;
            float: left;
            margin-right: 8px;
          };
          .item-right{
            float: left;
            line-height:18px;
            width: 206px;
            height: 60px;
            .item-r-desc{
              float:left;
              width:106px;
              .desc-title{
                width:106px;
                &:hover{
                  color:$color__hover--default;
                }
              };
              .desc-spec{
                width:106px;
                margin-top: 9px;
              };
            };
            .item-r-count{
              float:right;
              .count{};
              .itemdel-btn{
                color:$color--tip;
                position: relative;
                top: 29px;
                right: -40px;
              };
            }
          };
        };

      };
      .cart-total{padding-left:20px;border-top: 1px solid $border-color-default;
        height:40px;line-height:40px;font-size:14px;
        .totalnum{
            color:$color--price;
          width: 202px;
          display: inline-block;
        };
        .settlement{
            background:$background--main ;
            text-align:center;
            color:#fff;
            width:88px;height:32px;line-height:32px;
            margin:2px 2px 0 0;float:right;
        };
      };
    };
  };
  .cartdrop-content .cdrop-item:last-child{border:0!important;}
}

/*菜单分类*/
.comheader-bottom{
  .articles-block{
    float:left;background:$background--main;width:200px;height:40px;text-align:center;font-size:16px;color:#fff;position:relative;
    .articles-block-btn{line-height:40px;};
    .articles-dropdown{
      display:none;
      color:#fff;
      position:absolute;
      top:40px;left:0;height:440px;width:200px;background:rgba(34,34,34,0.9);color:#fff;z-index:1;
      .dropdown-section{
        height:88px;
        padding:12px;
        box-sizing:border-box;
        border-bottom: 1px solid #fff;
        .title{
          text-align: left;line-height:22px;
          font-size:16px;
          margin-bottom: 5px;
        };
        .category{
          line-height:18px;
          font-size:12px;
          .category-name{};
          .slash{margin:0 5px;};
        };
        &:hover{
          background: #fff;
          color: #666;
        };
        &:hover .articles{
          display:block;
        }
      };
      //右边
      .articles{
        display:none;
        position: absolute;
        overflow-y:auto;
        width: 680px;
        height: 440px;
        top: 0;
        left: 202px;
        padding:0 18px 0 50px;
        background:#fff;color:#666;
        box-shadow: 2px 2px 9px 4px #dfdfdf;
        z-index: 2;
        .art-brand{
          border-bottom:1px dashed #cacaca;
          padding:20px 0;
          .art-title{
            float:left;
            font-size:14px;line-height:14px;
            span,div{
              vertical-align:middle;
            };
          };
          .art-content{
            padding-left:82px;
            .art{
              font-size:12px;line-height: 12px;padding:4px 8px;
              display:inline-block;border-radius:4px;float:left;

              &:hover{
                background:#FF404E;color:#FFF;
              }
            }
          };
        };

      }

    };

  };
  .nav{
    float:left;margin-left:100px;height:40px;line-height:40px;
    a{
      font-size:18px;color:#272727;display:inline-block;border-bottom:2px solid transparent;margin-right:30px;height:36px;
      &:hover{border-bottom:2px solid $color__hover--default;color:$color__hover--default;};
    };

  };
  .advertisement{float:right;};
}
////////////////////////////////商城首页部 end/////////////////////////////

///////////////////////////////// 公共底部 str/////////////////////////////

.comfooter {
  .servicewrap {
    background: $background__main--page;
    height: 252px;
    .footer-service {
      .fservice-li {
        width: 33.333%;
        margin-top: 100px;
        float: left;
        .fsicon, .fsdesc {
          float: left;
        };
        .fsicon {
          margin-left: 80px;
        };
        .fsdesc {
          margin-top: 10px;
          margin-left: 10px;
          h3 {
            color: $color--default;
            font-size: 24px;
          };
          p {
            color: $color-tip-second;
            font-size: 14px;
            line-height: 26px;
          };
        };
      };
      .fservice-li:last-child {
        margin-right: 0;
      }
    };
  };

  .footer-links-wrap{
     background:$background__bottom--default;
    .footer-links {
      padding:60px 0;
      dl{
        float:left;
        margin-right:80px;
        color:$color-tip-second;
        dt{
          font-size:18px;
          margin-bottom: 10px;
        };
        dd{
          a{font-size:14px;line-height:24px;color:$color-tip-second;}
          &:hover a{
            color:#FFF;
          }
        };
      };
      .cooperation{
        .cooperation-dt{};
        .cooperation-dd{
          font-size: 14px;
          line-height:24px;
          span{
            vertical-align: 8px;
            margin-left: 6px;
          };
          &:hover .cooperation-highlight{
            color:#fff;
          }
        };

      };
      .cooperation1{
        width:280px;
      }
      .cooperation2{
        width:auto;
      }
    };
  };
  .friendlinks{
    color:$color-tip-second;
    padding-bottom:40px;
    .friendlinks-label{margin-right:10px;margin-left:0;}
    a{
      color:$color-tip-second;
      &:hover{color:#fff;}
    };
    span{margin:0 10px;};

  };
  .copyright{
    color: $color-tip-second;
    text-align: center;
    height: 40px;
    background: #1A1B1E;
    line-height: 40px;
  }


}

///////////////////////////////// 公共底部 end/////////////////////////////





////////////////////////////////////////////////////////////////////// 公用类 str////////////////////////////////////////////////////////////////////////////
.comshoppingcart{
  width: 50px;
  height: 29px;
  background: url(/img/common-icons.png) no-repeat -91px -159px;
  &:hover{
    background: url(/img/common-icons.png) no-repeat -146px -159px;
  }
}

.comdirection-right{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -68px -385px;
  //&:hover{
  //  background: url(/img/common-icons.png) no-repeat -14px -385px;
  //}
}

//公共底部的
.comquality{
  width: 74px;
  height: 74px;
  background: url(/img/common-icons.png) no-repeat -11px -447px;
}
.comdiscount{
  width: 74px;
  height: 74px;
  background: url(/img/common-icons.png) no-repeat -11px -527px;
}
.comcollocation{
  width: 74px;
  height: 74px;
  background: url(/img/common-icons.png) no-repeat -100px -527px;
}
//电话
.comtelephone{

  width: 24px;
  display: inline-block;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -289px;
}
.comtelephone-dd:hover .comtelephone{

  background: url(/img/common-icons.png) no-repeat -10px -289px;
}

//QQ
.comqq{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -64px;
}
.comqq-dd:hover .comqq{
  background: url(/img/common-icons.png) no-repeat -10px -64px;
}

//地址
.comlocation{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -233px;
}
.comlocation-dd:hover .comlocation{
  background: url(/img/common-icons.png) no-repeat -10px -233px;
}

.comandroid{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -120px;
}
.comandroid-dd:hover .comandroid{
  background: url(/img/common-icons.png) no-repeat -10px -120px;
}

.comios{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -177px;
}
.comios-dd:hover .comios{
  background: url(/img/common-icons.png) no-repeat -10px -177px;
}

.comofficialaccounts{
  display:inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/common-icons.png) no-repeat -54px -8px;
}
.comofficialaccounts-dd:hover .comofficialaccounts{
  background: url(/img/common-icons.png) no-repeat -10px -8px;
}
//公共底部的小图标

////////////////////////////////////////////////////////////////////// 公用类 end////////////////////////////////////////////////////////////////////////////




.og-bdr{
  border:1px solid red;
}
.og-bdg{
  border:1px solid green;
}








